﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InStockList.aspx.cs" Inherits="Stock_InStockList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script src="../js/jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <link href="../css/stockInCss/stockInstyle.css" rel="stylesheet" type="text/css" />
    <script src="../js/stockInJs/stockInJs.js" type="text/javascript"></script>
    <link href="../js/jquery-easyui-1.2.6/themes/default/easyui.css" rel="stylesheet"type="text/css" />
    <script src="../js/jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../js/jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../js/stockInJs/trimpath-template.js" type="text/javascript"></script>
    <link href="../css/wms.css" rel="stylesheet" type="text/css" />
    <link href="../css/icon.css" rel="stylesheet" type="text/css" />
    <script src="../js/stockInJs/CaculateTableJs.js" type="text/javascript"></script>
    <script src="../js/stockInJs/trimpath-template_o.js" type="text/javascript"></script>
    <script src="../js/json2.js" type="text/javascript"></script>
    <title>入库作业</title>
    <style type="text/css">
        #stockinTable,#inListtable,#stockdetailTable
        {
            width: 100%;
            border-collapse: collapse;
        }
        #stockinTable tr,#inListtable tr,#stockdetailTable tr
        {
            line-height: 30px;
        }
        #stockinTable td,#inListtable td,#stockdetailTable td
        {
            border-bottom: 1px solid #CCCCCC;
        }
        #stockinTable .datagrid-header td,#inListtable .datagrid-header td,#stockdetailTable .datagrid-header td
        {
            border-top: 1px solid #CCCCCC;
            padding-left: 5px;
        }
        .txt
        {
            border: 1px solid #D2D2D2;
            height: 22px;
            line-height: 22px;
        }
        .panel
        {
            margin-bottom:5px;
        }
        .btn-magin{ margin-left:50px;}
        #footerTable{ width:100%;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <!--search-->
        <div id="search" class="easyui-panel" title="查询条件" iconcls="icon-search" collapsible="true">
            <div>
                <table>
                    <tr>
                        <td>
                            条码
                        </td>
                        <td>
                            <input id="BarcodeText" type="text" tabindex="0" class="textBox txt" style="width:120px;" />
                        </td>
                        <td>
                            <div id="tmErrMsg">
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <!--operate-->
            <div id="operateDiv">
                <div id="stockInDiv">
                    <table id="stockinTable" style="margin-top: 5px;">
                        <tr class="datagrid-header">
                            <td style="width: 50px;">
                                序号
                            </td>
                            <td>
                                条码号
                            </td>
                            <td>
                               货号
                            </td>
                            <td>
                                颜色
                            </td>
                            <td>
                                号码
                            </td>
                            <td summary="sum">
                                数量
                            </td>
                            <td>
                               单价
                            </td>
                            <td summary="sum">
                               金额
                            </td>
                         
                            <td>
                                操作人
                            </td>
                            <td>
                                操作日期
                            </td>
                            <td style="width: 50px;">
                                操作
                            </td>
                        </tr>
                        <tr>
                            <td colspan="5">
                                <span>合计0笔</span>
                            </td>
                            <td colspan="2">
                                <span>数量合计0</span>
                            </td>
                            <td colspan="4">
                                <span>合计<span id="totalMoneySpan"></span></span>
                            </td>
                        </tr>
                    </table>
                    <div id="cacheDataDiv">
                    </div>
                </div>
                <div id="stockinFoot">
                    <table id="footerTable">
                        <tr>
                            <td>
                                仓库
                            </td>
                            <td>
                          <%--  <input id="warehouseTxt" name="warehouseTxt" disabled="disabled" class="txt" />--%>
                            <select id="warehouseDrp" name="warehouseDrp" style=" width:60px;">
                              
                            </select>
                           </td>
                            <td>
                                店铺代号
                            </td>
                            <td>
                               <input id="shipCodeTxt" name="shipCodeTxt" disabled="disabled" class="txt" />
                               <input id="shpNameTxt" name="shpNameTxt" disabled="disabled" class="txt" />
                            </td>
                            <td>
                                入库日期
                            </td>
                            <td>
                              <input id="stockIndateTxt" name="stockIndateTxt" disabled="disabled" class="txt" />
                            </td>
                        </tr>
                    </table>
                    <div style=" text-align:right;">
                        <input id="btnOk" type="button" value="确认" />
                        <input id="btnPrint" type="button" class="btn-magin" value="打印入库单" />
                    </div>
                </div>
            </div>
        </div>
        <!--result 入库单号-->
        <div id="stockInOkInfo" class="easyui-panel" title="入库列表">
            <div id="stockList">
            </div>
            <textarea id="stockList_tlp" style="display: none">
              <table id="inListtable">
                <tr class="datagrid-header">
                    <td>
                     入库单号
                    </td>
                    <td>
                     入库时间
                    </td>
                    <td>
                        操作
                    </td>
                </tr>
                {for o in list}
                 <tr>
                    <td>@{o.ITHPOS_BIL}</td><td>@{stockPage.toDefaultDtFormat(o.CTDATE)}</td><td><a href="#" onclick="stockPage.Bildetail(@{o.ITHPOS_BIL});">明细</a></td>
                 </tr>
                
                {/for}
                    <tr>
                </tr>
                    </table>
               </textarea>
        </div>
        <!--result 入库明细-->
        <div id="stockDetailList" style="width:800px;height:500px;"></div>
        <textarea id="stockDetail_tlp" style="display: none">
               <table id="stockdetailTable">
                <tr class="datagrid-header">
                    <td>
                     入库单号
                    </td>
                    <td>
                     条码号
                    </td>
                    <td>
                      货号
                    </td>
                     <td>
                      颜色
                    </td>
                     <td>
                      码号
                    </td>
                     <td>
                      数量
                    </td>
                     <td>
                      零售价
                    </td>
                    <td>
                    店铺
                    </td>
                    <td>
                    仓库
                    </td>
                      <td>
                    操作人
                    </td>
                       <td>
                    操作时间
                    </td>
                </tr>
                {for o in list}
                 <tr>
                  <td>@{o.ITDPOS_BIL}</td>
                  <td>@{o.ITDPOS_TM}</td>
                  <td>@{o.ITDPOS_ITEM}</td>
                  <td>@{o.ITDPOS_COL}</td>
                  <td>@{o.ITDPOS_MH}</td>
                  <td>@{o.ITDPOS_TRQ}</td>
                  <td>@{o.ITHPOS_LSPRI}</td>
                  <td>@{o.CII}</td>
                  <td>@{o.ITDPOS_WHS}</td>
                  <td>@{o.CTMAN}</td>
                  <td>@{stockPage.toDefaultDtFormat(o.CTDATE)}</td>                                  
                 </tr>
                {/for}
                <tr>
                <td colspan="6" style=" text-align:right; padding-right:20px;">合计数量@{stockPage.BildetailTotal.qty}</td>
                <td colspan="5" style="text-align:left; ">合计金额@{stockPage.BildetailTotal.price}￥</td>
                </tr>
                </table>
            </textarea>
        </div>
    </form>
</body>
</html>
